/**
 * 支付相关服务
 */

const util = require('../utils/util.js');
const capi = require('../config/api.js');

/**
 * 判断用户是否登录
 */
function getFoodMenu(foodTitle: any) {
  return new Promise(function (resolve, reject) {
    util.request(capi.getFoodMenu, {
      appKey: 'hWFhW9bOkMZBgQ1724384687916zKGUEYkFSA',
      uid: '2nCLFc1724384687916BUJJ4SnE1a',
      foodTitle
    }).then((res:any) => {
      if (res.code === 0) {
        console.log("res", res)
        reject(res);
      } else {
        reject(res);
      }
    });
  });
}


module.exports = {
  getFoodMenu,
};